package com.liang.utils;

import java.io.IOException;
import java.util.Properties;

/**
 * @ClassName PropertiesUtils
 * @Description TODO
 * @Author liang
 * @Date 2019/4/12 9:47
 * @Version 1.0
 **/
public class PropertiesUtils {
    private static String PATH = "/user.properties";

    private static Properties pop;

    static {
        pop = new Properties();
        try {
            pop.load(PropertiesUtils.class.getResourceAsStream(PATH));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }



    public static String getValue(String key){
       return pop.getProperty(key);
    }



}
